Vue.component('seeHeader',{
    // nameL:"seeHeader",
    props:["uid","number"],
    template: '<header class="seeIndex-header">\n' +      // :class="{seeIndexHeader:number==3}"
    '        <nav class="seeInfo-nav">\n' +
    '            <a href="/" :class="{active:number==0}">推荐<span></span><strong class="seeInfo-icon"></strong></a>\n' +
    '            <a href="/see/enterpriseAd" :class="{active:number==1}">广告<span></span></a>\n' +
    '            <a href="/see/cityAd" :class="{active:number==2}">城市<span></span></a>\n' +
    '            <a href="/see/selfMediaPage" :class="{active:number==3}">自媒体<span></span></a>\n' +
    '        </nav>\n' +
    '        <strong class="seeIndex-time" @click="getNext(2)"></strong>\n' +
    '    </header>',
    data: function () {
        return {

        }
    },
    watch:{

    },
    mounted:function(){

    },
    methods:{
        bgimg:function(url){
            url = url?url:"";
            return {
                "background-image":'url("'+url+'"),url("")'
            }
        },
        getNext:function(type){
            if(type==1){
                location.href="/cityAd/citySearch?type=3";
            }else if(type==2){
                location.href="/see/history";
            }
        }
    }
});